package cn.itcast.core.dao;

import cn.itcast.core.bean.TestCase;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TestCaseMapper {
    int deleteByPrimaryKey(Long id);
//新增全部添加一遍
    int insert(TestCase record);
//新增设置那个值填那个值
    int insertSelective(TestCase record);
//根据id查用例
    TestCase selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TestCase record);

    int updateByPrimaryKey(TestCase record);
// 根据参数查询用例
    List<TestCase> selectByTestcase(@Param("interfaceName") String interfaceName, @Param("interfaceType")String interfaceType, @Param("textResult") String textResult);
//分页
    List<TestCase> selectTestCaseList(@Param("startRow")int startRow,@Param("pageSize")int pageSize,@Param("interfaceName") String interfaceName, @Param("interfaceType")String interfaceType, @Param("textResult") String textResult );
    //查询一共多少条数据
    int selectTestListCount(@Param("interfaceName") String interfaceName, @Param("interfaceType")String interfaceType, @Param("textResult") String textResult);
}